module.exports = class extends think.Logic {
  getAction() {
    const rules = {
      uid: {
        int: { min: 1 },
        required: true
      }
    };
    const msgs = {
      uid: '必须指定用户的ID'
    };
    const flag = this.validate(rules, msgs);
    if (!flag) {
      return this.fail(1001, 'validate error', this.validateErrors);
    }
  }
};
